package com.hyk.enums;


import lombok.Getter;

@Getter
public enum  ApiEnum {

    SUCCESS(200,"成功"),FAIL(500,"失败"),
    FAIL_NAME_OR_PASSWORD_ERROR(1000,"账号或密码错误"),
    CODE_GENERATOR_ERROR(10000,"代码生成失败"),
    USERNAME_OR_PASSWORD_IS_NULL(10001,"账号或密码为空"),
    USERNAME_OR_PASSWORD_IS_ERROR(10002,"账号或密码错误"),
    ABNORMAL_ACCOUNT(10003,"账号数量大于一个"),
    USER_NOT_LOGIN(10004,"用户未登录"),
    TOKEN_IS_ILLEGAL(10005,"没有token无法访问"),
    VERIFICATION_CODE_ERROR(10006,"验证码错误"),
    LOGOUT_OK(10007,"登出成功！"),
    USER_NOT_ROLE(10008,"用户没有绑定"),
    USER_NOT_PRESS(10009,"没有访问权限")
    ;


    private int code;

    private String message;

    ApiEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

}
